package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class CopyDemo {
    public static void main(String[] args) throws IOException {
        //FileInputStream fis = new FileInputStream("a.txt");
       FileOutputStream fos = new FileOutputStream("c.txt",true);
//        int len;
//        byte[] bytes = new byte[1024];
//        while ((len = fis.read())!= -1){
//            fos.write(bytes,bytes.length,len);
//        }
        fos.write("\n".getBytes());
        String line = "与至上蓝天会是不同的存在的对牙血鬼组织。正式名称是“World Wide Wing Association” ";
        fos.write(line.getBytes(StandardCharsets.UTF_8));
        fos.close();
       // fis.close();
    }
}
